package com.rerun.controller.base;

import com.rerun.common.bean.Rest;
import com.rerun.common.controller.SuperController;
import com.rerun.entity.PhoneLog;
import com.rerun.service.IPhoneLogService;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

/**
 * app日志接口
 */
@Api(value="app日志",description="app日志")
@RestController
@RequestMapping("/phoneLog")
public class PhoneLogController extends SuperController{
	@Autowired
    private IPhoneLogService phoneLogService;
	/**
	 * 收集app登录信息详情
	 * 
	 */
	@ApiOperation(value = "获取app日志", notes = "获取app日志", httpMethod = "POST")
	@RequestMapping(value="/addPhoneLog")
	public Rest addPhoneLog(PhoneLog phoneLog){
		phoneLog.setCreateTime(new Date());
		phoneLogService.insert(phoneLog);
		return Rest.ok("获取成功");
	}
	
	
}
